package com.xyp.sso.testexecution;

public class CommonExecutor {

    public static String execution(CommonRunnable run) {

        String result = "error";
        try {
            result = run.exec();
        }
        catch (Exception e) {

            System.out.println(e.getMessage());
        }
        return result;
    }

    public static interface CommonRunnable {

        public String exec();

    }

}
